//
//  ProductsFilterParamItem.swift
//  weile
//
//  Created by LKM on 16/10/19.
//  Copyright © 2016年 LKM. All rights reserved.
//

import UIKit

class ProductsFilterParamItem: UICollectionViewCell {
    @IBOutlet private weak var btn_title: UIButton!
    
    override func awakeFromNib() {
        super.awakeFromNib()
         btn_title.layer.borderColor=R.colors._ccc.cgColor
        
        btn_title.isUserInteractionEnabled=false;
       
         btn_title.layer.removeAllAnimations();
        btn_title.titleLabel!.layer.removeAllAnimations();
//        btn_title.titleLabel!.layer.removeAnimation(forKey: "kCATransitionFade")
//        btn_title.titleLabel!.layer.removeAllAnimations()
//        setUserInteractionEnabled
    }
    
    func binData(_ d:ProductsToFilter2){
        btn_title.setText(d.name ?? "")
        if(d.isSelect){
            btn_title.layer.borderWidth=0
            btn_title.backgroundColor=R.colors.orange2;
            ViewHelp.setTextColor(btn_title, UIColor.white)
            
        }else{
            btn_title.layer.borderWidth=0.7
            btn_title.backgroundColor=UIColor.white
            ViewHelp.setTextColor(btn_title, R.colors._707070)
        }
        
    }
    
}
